// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include "src/loadcontainer.h"
BOOL APIENTRY DllMain( HMODULE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved)
{
	switch (ul_reason_for_call)
	{
	case DLL_PROCESS_ATTACH:
	case DLL_THREAD_ATTACH:
	case DLL_THREAD_DETACH:
	case DLL_PROCESS_DETACH:
		break;
	}
	return TRUE;
}

_stdmethod_export(HRESULT,DoInit)() {

	CLoadContainer loader;
	const basic_tchar* pszPath = _T("/home/com/Snows/libs/");

	const char* pCode = "{\"component\": [ 	\
		\"{F170A724-AACA-4603-BB1C-0A8EAF1C3322}:asynio:1:20\",	\
		\"{ED660EF7-7D0B-4CBE-8D92-D5F225434464}:http:2:20\",	\
		\"{99148517-E9AB-4F72-A2E3-012625A35E95}:net:3:20\",	\
		\"{201409F6-22F8-48d3-A69F-7935BDDE6BFF}:msgbus:4:20\"]}";

	loader.Init(0,pszPath,pCode);
	loader.Start(0,0);
	loader.Stop(0, 0, 0);
	loader.UnInit(0);



	return S_OK;
}


